# Uncomment the next line to define a global platform for your project

platform :ios, '13.0'

install! 'cocoapods',
:warn_for_unused_master_specs_repo => false,
:preserve_pod_file_structure => true,
:generate_multiple_pod_projects => true,
:incremental_installation => true, #如果修改了pre_install或post_install，pod install时需要加--clean-install
:parallel_pod_downloads => true,
:parallel_pod_download_thread_pool_size => 5

target 'MarkDownDemo' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for MarkDownDemo
  pod 'Down', '0.11.0'
  pod 'MarkdownUIKit', :path => './MarkdownUIKit'
  
  pod 'LookinServer', '1.2.7', :subspecs => ['SwiftAndNoHook'], :configurations => ['Debug']

end

#post_install do |installer|
#
#  installer.generated_projects.each do |project|
#    project.targets.each do |target|
#      target.build_configurations.each do |config|
#        # 关闭BITCODE，方便Flutter
#        config.build_settings['ENABLE_BITCODE'] = 'NO'
#
#        # 消除编译警告
#        if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 13.0
#          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
#        end
#        
#        # 非强制签名 适配 Xcode 14
#        config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
#        config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
#        config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
#        
#        # 适配Xcode15 自定义脚本路径问题
#        config.build_settings['ENABLE_USER_SCRIPT_SANDBOXING'] = "NO"
#        
#        # 小组件引入二方库编译不通过问题，因为有些方法用了UIApplication.shared，小组件没有，使用的时候要避开这些方法
#        config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = "NO"
#        
#      end
#    end
#
#    project.targets.each.each do |target|
#      target.build_configurations.each do |config|
#        if config.name.include?("Testing_Release")
#          # 这里为什么不直接用 TEST=1，因为其是Xcode保留的环境变量，配置后会执行Test相关操作
#          config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
#          config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'TESTING=1'
#
#          config.build_settings['SWIFT_ACTIVE_COMPILATION_CONDITIONS'] ||= ['$(inherited)']
#          config.build_settings['SWIFT_ACTIVE_COMPILATION_CONDITIONS'] << 'TESTING'
#        end
#        
#        config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO'
#      end
#    end
#
#  end
#end
